package collection_test.queue.blcok_queue;

import java.util.concurrent.PriorityBlockingQueue;

/**
 * 带有阻塞功能的PriorityQueue  支持自定义排序
 */
public class PriorityBlockingQueueTest {
    public static void main(String[] args) throws InterruptedException {
        PriorityBlockingQueue priorityBlockingQueue = new PriorityBlockingQueue();
        priorityBlockingQueue.put(123);
        priorityBlockingQueue.take();

    }
}
